{% extends "manage/layout.html" %}

{% set page_title = '教室管理' %}

{% block content %}
<div class="m-content">
	<form class="form-horizontal" method='POST'>
		{{ form.hidden_tag() }}
		<div class="form-group">
			{% from "common/_formhelper.html" import render_field %}
			{{ render_field(form.piano_id, class_="form-control") }}

			{{ render_field(form.tablet_id, class_="form-control") }}

			{% from "common/_formhelper.html" import render_select %}
			{{ render_select(form.position) }}

			{{ render_select(form.tablet_version) }}

			{{ render_field(form.comments, class_="form-control", label_nonrequired=True) }}

		<div class="col-sm-offset-2">
			<button class="btn btn-default">确认</button>
            <a id="return" class="btn btn-default" href="{{ url_for('manage.show_classroom_devices', classroom_id=form.classroom.id) }}">返回</a>
		</div>
	</form>
</div>
{% endblock %}
